<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./axios.js"></script>
</head>
<body>
    <h1>首页</h1>
    <button>点击</button>
    <script>
        let btn=document.querySelector('button')
        btn.onclick=function(){
            axios.post('/abc',{a:1,b:2}).then(run=>{
                console.log(run);
                
            })
        }
    </script>
</body>
</html>